package com.wangsong.service;

import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.kafka.listener.MessageListener;

public class KafkaConsumer implements MessageListener<Integer, String>{  

	
    @Override  
    public void onMessage(ConsumerRecord<Integer, String> record) {  
        System.out.println(record);  
        
    }  
  
} 
